import { DataTypes , Model } from "sequelize"
import { sequelize } from '../component/db/sequelize.js'

class BookListDb extends Model {}

BookListDb.init(
    {
        bookName : {
            type : DataTypes.STRING ,
            allowNull : false
        },
        author : {
            type : DataTypes.STRING ,
            allowNull : false
        }
    },
    {
        sequelize , modelName : 'BookListDb'
    }
)

export default BookListDb